/*
 * zone.h
 *
 *  Created on: Nov 23, 2008
 *      Author: cnsnyldz
 */

#ifndef ZONE_H_
#define ZONE_H_
#include "map.h"
#include "elements/island.h"
#include "elements/traderoute.h"
#include "elements/bonuspack.h"
#define DAY 0
#define NIGHT 1

using namespace std;

class Zone {
private:

	int dayMode;
	Map map;
	vector<Island> islands;
	vector<TradeRoute> routes;
	vector<BonusPack> packs;
	vector<vector<pair<float,float> > > terrain;

public:
	Map& getMap(){return map;};
	vector<Island>& getIslands(){return islands;};
	vector<TradeRoute>& getRoutes(){return routes;};
	vector<BonusPack>& getPacks(){return packs;};

	void draw();

	void calculateMap();

	pair<float,float> fromWindowtoMap(pair<float,float> tmp);
	pair<float,float> fromHeighttoMap(pair<float,float> tmp);
	pair<int,int> fromMaptoHeight(pair<float,float> tmp);
	pair<int,int> fromWindowtoHeight(pair<float,float> tmp);


	//phase3
	void setDay(){dayMode=DAY;};
	void setNight(){dayMode=NIGHT;};
};

#endif /* ZONE_H_ */
